package com.wnxy.parking.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author Jet
 * @since 2023-08-18
 */
@Getter
@Setter
@TableName("parking")
@ApiModel(value = "Parking对象", description = "")
public class Parking implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("车位号")
    private String numbers;

    @ApiModelProperty("状态 1使用 0未使用")
    private Integer status;

    @ApiModelProperty("业主编号")
    private Integer ownerId;

    @ApiModelProperty("备注")
    private String remarks;

    // 冗余存储；是否为数据库表字段
    @TableField(exist = false)
    @ApiModelProperty("业主名称")
    private String username;
    @TableField(exist = false)
    private String tel;
}
